<%@ page contentType="text/html" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<%@ include file="header.jsp" %>
		<div>
			<h3>Change E-Mail Address</h3>
			<br/>
			<div id="notification">
			<% 
			   String bkup = (String)request.getAttribute("emailbkup");
			   if(bkup==null){
			     bkup="";
			   }
			   String error = (String)request.getAttribute("modifiederror");
			   String correct = (String)request.getAttribute("modifiedok");
			   if(error!=null){//hubo error
			      %> <p class="ui-state-error"><%= error %></p> <%
			   } else if(correct != null) {
			     %>  <p class="ui-state-highlight"><%= correct %></p> <%
			   }
			%>
			</div>
					<form method="POST" action="saveMail" class="botones">
					<table>
						<tr>
							<td>Enter a new email address:</td>
							<td><input name="email" type="text" value="<%= bkup %>"/></td>
						</tr>
						<tr>
							<td>Confirm your new email address:</td>
							<td><input name="email2" type="text"/></td>
						</tr>
						<tr>
							<td></td>
							<td><input name="ok" type="submit" value="OK"></td>
						</tr>
					</table>
					</form>
	</div>

<%@ include file="footer.jsp" %>